import { createApp } from 'vue';
import App from './App.vue';
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import 'element-plus/theme-chalk/dark/css-vars.css'
import './style.css';

const app = createApp(App);


app.config.globalProperties.$http = {
    setHeaders: (response) => {
        response.headers.set('X-Content-Type-Options', 'nosniff');
        response.headers.set('Content-Type', 'application/json; charset=utf-8');
        response.headers.set('Cache-Control', 'no-cache');
        response.headers.set('Cross-Origin-Opener-Policy','same-origin');
        response.headers.set('Cross-Origin-Embedder-Policy','require-corp');
    }
};

app.use(ElementPlus)
app.mount('#app');